package com.sky.service;

import com.sky.dto.ShoppingCartDTO;
import com.sky.entity.ShoppingCart;

import java.util.List;

/**
 * @Description ShoppingCartService
 * @Author zhuzi
 * @Date 2023/10/01
 */
public interface ShoppingCartService {

    /**
     * 添加购物车
     *
     * @param shoppingCartDTO
     */
    void addShoppingCart(ShoppingCartDTO shoppingCartDTO);

    /**
     * 获取购物车
     *
     * @return
     */
    List<ShoppingCart> list();

    /**
     * 清除购物车
     */
    void deleteShoppingCart();

    /**
     * 减少购物车商品数量
     *
     * @param shoppingCartDTO
     */
    void subShoppingCartNumber(ShoppingCartDTO shoppingCartDTO);

}
